package csc.fresher.dao;

import java.sql.Timestamp;
import java.util.List;

import csc.fresher.entity.DepositTransaction;

public interface TransactionDao {
	public long createTransaction(DepositTransaction tx);
	public void removeTransaction(long txID, long adminID, long accountID);
	public void approveTransaction(long txID, long adminID, long accountID);
	public void denyTransaction(long txID, long adminID, long accountID);
	public List<DepositTransaction> searchTransactionByAccountID(long accountID);
	public List<DepositTransaction> searchTransactionByCustomerCardID(long customerCardID);
	public List<DepositTransaction> searchTransactionByCustomerCardIDInGivenPeriod(long customerCardID, Timestamp beginDate, Timestamp endDate);
	public DepositTransaction getTransactionByID(long transactionID);
}
